<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:if test="#session.logined != 'true'">      

    <div id="menu">
        <ul>
            <li<s:if test="#session.selectedPage == 'registration'"> class="active"</s:if>><a href="<s:url action="registration"/>"><s:property value="%{getText('register')}"/></a></li>
            <li<s:if test="#session.selectedPage == '#'"> class="active"</s:if>><a href="#" title=""><s:property value="%{getText('about')}"/></a></li>
            <li<s:if test="#session.selectedPage == 'repairPassword'"> class="active"</s:if>><a href="<s:url action="repairPassword"/>"><s:property value="%{getText('repairPassword')}"/></a></li>
        </ul>
    </div>
    <div id="login" class="boxed">
        <h2 class="title"><s:property value="%{getText('account')}"/></h2>
        <div class="content">
            <s:form id="form1" action="login" method="post">
                <s:textfield id="inputtext1" label="%{getText('email')}" labelposition="top" name="email"/>
                <s:password id="inputtext2" label="%{getText('password')}" labelposition="top" name="password"/>
                <s:submit id="inputsubmit1" value="%{getText('login')}"/>
            </s:form>
        </div>
    </div>

</s:if><s:else>

    <div id="menu">
        <ul>
            <li<s:if test="#session.selectedPage == 'index'"> class="active"</s:if>><a href="<s:url action="index"/>"><s:property value="%{getText('mainPage')}"/></a></li>
            <li<s:if test="#session.selectedPage == 'event'"> class="active"</s:if>><a href="<s:url action="event"/>"><s:property value="%{getText('addEvent')}"/></a></li>
            <li<s:if test="#session.selectedPage == 'showEvents'"> class="active"</s:if>><a href="<s:url action="showEvents"/>"><s:property value="%{getText('showEvents')}"/></a></li>
            <li<s:if test="#session.selectedPage == 'showProfile'"> class="active"</s:if>><a href="<s:url action="showProfile"/>"><s:property value="%{getText('editProfile')}"/></a></li>
            <li<s:if test="#session.selectedPage == 'admin'"> class="active"</s:if>><a href="<s:url action="admin"/>">ADMIN PANEL</a></li>
            <li><a href="<s:url action="logout"/>"><s:property value="%{getText('logout')}"/></a></li>
        </ul>
    </div>
    <div id="login" class="boxed">
        <h2 class="title"><s:property value="%{getText('account')}"/></h2>
        <div class="content">
            <p><s:property value="%{getText('loginedAs')}"/> <s:property value="#session.email" />
        </div>
    </div>

</s:else>